package com.viettel.pon.form;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class InputLoginForm implements KvmSerializable{
	
	 private String username;
	    private String password;

	    public String getUsername() {
	        return username;
	    }

	    public void setUsername(String username) {
	        this.username = username;
	    }

	    public String getPassword() {
	        return password;
	    }

	    public void setPassword(String password) {
	        this.password = password;
	    }

	    public InputLoginForm() {
	    }

	    public InputLoginForm(String username, String password) {
	        this.username = username;
	        this.password = password;
	    }
	    public Object getProperty(int arg0) {
	        
	        switch(arg0)
	        {
	        case 0:
	            return username;
	        case 1:
	            return password;
	        }
	        
	        return null;
	    }

	    public int getPropertyCount() {
	        return 3;
	    }

	    public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
	        switch(index)
	        {
	        case 0:
	            info.type = PropertyInfo.STRING_CLASS;
	            info.name = "username";
	            break;
	        case 1:
	            info.type = PropertyInfo.STRING_CLASS;
	            info.name = "password";
	            break;
	        default:break;
	        }
	    }

	    public void setProperty(int index, Object value) {
	        switch(index)
	        {
	        case 0:
	        	username = value.toString();
	            break;
	        case 1:
	        	password = value.toString();
	            break;
	        default:
	            break;
	        }
	    }
}
